-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only vote on recent blocks #420
Conversation
…t according to timestamp and wall clock
… to testing_allow_voting to make it obvious it is only for testing and allow voting even if block is not recent.
This reverts commit ee76f64.
The default value of testing_allow_voting should be false.
Approving, but I'm a little uncomfortable that
I think it would be cleaner to have two separate states, or even better removing the test optimization (first_usage), in which case |
If I remember correctly this made a big difference. |
Note:start |
Simplify vote restriction by only looking at block timestamp vs wall clock instead of flipping an
enable_voting
flag.The
testing_allow_voting
change was needed because the tester creates blocks starting with2020-01-01
.Resolves #418